import ReactDOM from "react-dom/client";
import "@/assets/styles/styles.scss";
import router from "./router/router.tsx";
import { RouterProvider } from "react-router-dom";
import { Provider } from "react-redux";
import store from "./store/configureStore.ts";

// 配置dayjs 本地化语言
import "dayjs/locale/zh-cn";
import dayjs from "dayjs";
dayjs.locale("zh-cn");

ReactDOM.createRoot(document.getElementById("root")!).render(
  <Provider store={store}>
    <RouterProvider router={router} />
  </Provider>
);
